#ifndef __MYSTDIO_H__
#define __MYSTDIO_H__

#define SIZE 1024
#define UMASK 0666

#define FLUSH_NONE 1
#define FLUSH_LINE 2
#define FLUSH_FULL 4

#define FORCE 1
#define NOMRAL 2

typedef struct _MY_IO_FILE{
    int fileno;
    int flag;
    char outbuff[SIZE];
    int curr;
    int cap;
}MYFILE;

MYFILE* my_fopen(char* filename,char* mood);
void my_fclose(MYFILE* fp);
int my_fwrite(const char* s,int size,MYFILE* fp);
void my_fflush(MYFILE* fp);
#endif